/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package phd.dupenois.changeidentifiers.dotpatterns;

import uk.co.dupenois.geometry.Coordinate;

/**
 *
 * @author Max
 */
public class Dot extends Coordinate{
    public Dot(double x, double y){
        super(x, y);
    }

    @Override
    public boolean equals(Object other){
        if(other==this)return true;
        if(!(other instanceof Dot)) return false;
        Dot d = (Dot)other;
        return (d.getX()==this.getX() && d.getY()==this.getY());
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 79 * hash + (int) (Double.doubleToLongBits(this.getX()) ^ (Double.doubleToLongBits(this.getX()) >>> 32));
        hash = 79 * hash + (int) (Double.doubleToLongBits(this.getY()) ^ (Double.doubleToLongBits(this.getY()) >>> 32));
        return hash;
    }

}
